package com.yuantong.xyerp.core.api.service;

import com.yuantong.xyerp.core.api.dto.RoleDto;
import com.yuantong.xyerp.core.api.dto.UserDto;
import com.yuantong.xyerp.core.api.model.Role;

/**
 * Created by Jianguo.Yin on 2021-07-09.
 */
public interface IRoleService {

    RoleDto findRoleByUser(UserDto userDto);

    int addRole(RoleDto roleDto);

    Role findRoleByName(RoleDto roleDto);

    int delete(RoleDto roleDto);
}
